﻿using System;

namespace ARS.Control.Common.EntityManage
{
    public class BaseModel
    {
        private Type _typeModel;
        public Type typeModel
        {
            get
            {
                if (_typeModel == null)
                {
                    //if (Entity == null)
                    //{
                    //    return null;
                    //    //throw new Exception("aaa");
                    //    //throw new HttpException(404, "Not Found"); 
                    //}
                    _typeModel = Model.GetType();
                }
                return _typeModel;
            }
            set
            {
                _typeModel = value;
            }
        }

        //public Type TypeModel
        //{
        //    get;
        //    set;
        //}

        public object Model
        {
            get;
            set;
        }
    }
}
